<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title><?php echo $content['title'];?>--我的博客</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" type="text/css" href="<?php echo site_url();?>css/style.css" />
<script type="text/javascript" src="<?php echo site_url();?>js/jquery.js" ></script>
<script type="text/javascript" src="<?php echo site_url();?>js/content.js" ></script>
</head>

<body>
	<div id="header">
		<span class="logo">blog about web design</span>																																																				<div style="position:absolute;top:1px;left:1px;height:0px;width:0px;overflow:hidden"><h1><a href="http://www..com">best free templates</a></h1></div>
		<ul id="menu">
			<li><a href="<?php echo site_url();?>index/"><img src="<?php echo site_url();?>images/but1.gif" alt="" width="64" height="42" /></a></li>
			<li><a href="index2.html"><img src="<?php echo site_url();?>images/but2.gif" alt="" width="108" height="42" /></a></li>
			<li><a href="index2.html"><img src="<?php echo site_url();?>images/but3.gif" alt="" width="93" height="42" /></a></li>
			<li><a href="index2.html"><img src="<?php echo site_url();?>images/but4.gif" alt="" width="101" height="42" /></a></li>
			<li><a href="index2.html"><img src="<?php echo site_url();?>images/but5.gif" alt="" width="86" height="42" /></a></li>
			<li><a href="index2.html"><img src="<?php echo site_url();?>images/but6.gif" alt="" width="102" height="42" /></a></li>
		</ul>
		<img src="<?php echo site_url();?>images/spacer.gif" alt="setalpm" width="120" height="120" border="0" usemap="#Map" class="rss" />
        <map name="Map">
          <area shape="circle" coords="60,60,63" href="#">
      </map>
	</div>
	<div id="content">
		<div id="posts">
			<div class="post">
				<h2><?php echo $content['title'];?></h2>
				<div><span class="date"><?php echo date("M jS H:i",$content['ctime']);?></span><span class="categories">关键字: <?php echo $content['keywords'];?></span></div>
				<?php echo $content['contents'];?>
			</div>
			<div id="comments">
				<img id="commetslogo" src="<?php echo site_url();?>images/title3.gif" alt="" width="216" height="39" />
				<span id="comment_area">
				<?php foreach ($comments as $v):?>
				<div class="comment">
					<div class="avatar">
						<img src="<?php echo site_url();?>images/avatar1.jpg" alt="" width="80" height="80" /><br />
						<span><?php echo $v['username']?></span><br />
						<?php echo date("M jS H:i",$v['ctime']);?>
					</div>
					<p><?php echo $v['content'];?></p>
				</div>
				<?php endforeach;?>
				</span>
				<span class="next" onclick="show_all()">
					<em class="ico_load">
						<img width="20" height="20" src="<?php echo site_url();?>images/o_loading.gif" />
					</em>
				点击查看剩下<span id='total' t="<?php echo $total;?>"><?php echo $total;?></span>条评论
				</span>
				<div id="add">
					<img src="<?php echo site_url();?>images/title4.gif" alt="" width="216" height="47" class="title" /><br />
					<div class="avatar">
						<img src="<?php echo site_url();?>images/avatar2.gif" alt="" width="80" height="80" /><br />
						<span>Name User</span><br />
						April 12th
					</div>
					<div class="form">
						<div >
							<input type="hidden" id="commentid" name='commentid' value=<?php echo $content['id'];?>>
							<textarea id="message" onfocus="ClearDefault(this)" onblur="AddDefault(this)">please leave your comment here...</textarea><br />
							<input type="text" id="username" value="Name" onfocus="if (this.value == 'Name') {this.value = '';}" onblur="if (this.value == '') {this.value = 'Name';}"/><br />
							<input type="text" id="email" value="E-mail" onfocus="if (this.value == 'E-mail') {this.value = '';}" onblur="if (this.value == '') {this.value = 'E-mail';}"/><br />
							<input type="text" id="url" value="URL (Optional)" onfocus="if (this.value == 'URL (Optional)') {this.value = '';}" onblur="if (this.value == '') {this.value = 'URL (Optional)';}"/><br />
							<img id="submit" src="<?php echo site_url();?>images/button.gif" width="94" height="27" onclick="submint();"/>
						</div>
					</div>
				</div>
			</div>
		</div>
		<div id="sidebar">
		    <div id="search">
				<input type="text" value="Search"> <a href="#"><img src="<?php echo site_url();?>images/go.gif" alt="" width="26" height="26" /></a>
			</div>
			<div class="list">
				<img src="<?php echo site_url();?>images/title1.gif" alt="" width="186" height="36" />
				<ul>
					<li><a href="#">animation</a></li>
					<li><a href="#">magazines</a></li>
					<li><a href="#">architecture</a></li>
					<li><a href="#">news</a></li>
					<li><a href="#">art</a></li>
					<li><a href="#">photography</a></li>
					<li><a href="#">blogs</a></li>
					<li><a href="#">product design</a></li>
					<li><a href="#">books</a></li>
					<li><a href="#">stuff</a></li>
					<li><a href="#">graphic design</a></li>
					<li><a href="#">web design</a></li>
					<li><a href="#">illustration</a></li>
				</ul>
				<img src="<?php echo site_url();?>images/title2.gif" alt="" width="180" height="34" />
				<ul>
					<li><a href="#">January</a></li>
					<li><a href="#">July</a></li>
					<li><a href="#">February</a></li>
					<li><a href="#">August</a></li>
					<li><a href="#">March</a></li>
					<li><a href="#">September</a></li>
					<li><a href="#">April</a></li>
					<li><a href="#">October</a></li>
					<li><a href="#">May</a></li>
					<li><a href="#">November</a></li>
					<li><a href="#">June</a></li>
					<li><a href="#">December</a></li>
				</ul>
			</div>
		</div>
	</div>
	<div id="footer">
		<p>Copyright &copy;. All rights reserved. Design from <a href="http://www..com" target="_blank" title="Free Templates">.com</a></p>
	</div>
</body>
</html>

